package com.xaicode.template.gendata.mall.model;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Locker xaicode@sina.com
 * @version 1.0
 * @date 2022/5/24 0024 21:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppMain {

    private Long ts;
    private AppCommon common;
    private AppPage page;
    private AppError err;

    private AppNotice notice;
    private AppStart start;
    private List<AppDisplay> displays;
    private List<AppAction> actions;

    public static AppMain builder() {
        return new AppMain();
    }

    public Long getTs() {
        return this.ts;
    }

    public AppCommon getCommon() {
        return this.common;
    }

    public AppPage getPage() {
        return this.page;
    }

    public AppError getErr() {
        return this.err;
    }

    public AppNotice getNotice() {
        return this.notice;
    }

    public AppStart getStart() {
        return this.start;
    }

    public List<AppDisplay> getDisplays() {
        return this.displays;
    }

    public List<AppAction> getActions() {
        return this.actions;
    }

    public String toString() {
        return JSON.toJSONString(this);
    }
}
